package com.msunsoft.dataset.dictionary.ecache;

import java.math.BigDecimal;
import java.util.HashMap;

/**
 * 字典缓存类
 * @author Administrator
 *
 */
public class MapCache extends HashMap<String, String>{
	private static final long serialVersionUID = 1L;

	public MapCache(){}
	
	/**
	 * 根据key获取缓存中值
	 * @param key
	 * @return
	 */
	public String getAsString(String key){
		Object obj = get(key);
		if (obj != null)
			return (String) obj;
		else
			return null;
	}
	
}
